﻿@model mBlog.Data.Entities.Tag

@{
    ViewBag.Title = "Tag";
}

<h2>Tag</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Tag</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UrlName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UrlName)
            @Html.ValidationMessageFor(model => model.UrlName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsActive)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsActive)
            @Html.ValidationMessageFor(model => model.IsActive)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AddedTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AddedTime)
            @Html.ValidationMessageFor(model => model.AddedTime)
        </div>

        <p>
            <input type="submit" value="Update" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "List")
</div>

